//:C06:ep_6_9.c -- prime numbers.
#include <stdio.h>
#include <math.h>

int main(void)
{
    int m, k, i, n = 0;
    for (m = 101; m <= 200; m = m + 2)
    {
        k = (int)sqrt((double)m);
        for (i = 2; i <= k; i++)
        {
            if(m % i == 0)
            {
                break;
            }
        }
        if(i >= k + 1)
        {
            printf("%d", m);
            n = n + 1;
        }
        if(n % 10 == 0)
        {
            printf("\n");
        }
    }
    printf("\n");
}